<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>仿站电商·商品列表</title>
    <link rel="stylesheet" href="../css/goods.css">
</head>
<body>
    <!-- 顶部标题 -->
    <div class="header-title">
        <h1>仿站电商·商品列表</h1>
        <a href="index.html" class="back-home">回到首页</a>
    </div>

    <!-- 主要内容区 -->
    <div class="goods-container">
        <!-- 分页导航 -->
        <div class="page-nav">
            <button onclick="changePage('first')">首页</button>
            <button onclick="changePage('prev')">上一页</button>
            <span class="page-info">
                <span id="currentPage">2</span> / <span id="totalPages">77</span>
            </span>
            <button onclick="changePage('next')">下一页</button>
            <button onclick="changePage('last')">末页</button>
            <input type="text" id="jumpPage" style="width: 50px;">
            <button onclick="jumpToPage()">跳转</button>
            <select class="page-size-select" onchange="changePageSize()">
                <option value="12">12条/页</option>
                <option value="24">24条/页</option>
                <option value="36">36条/页</option>
            </select>
        </div>

        <!-- 商品列表 -->
        <div class="goods-list" id="goodsList"></div>
    </div>

    <script src="../lib/axios.min.js"></script>
    <script src="../js/config.js"></script>
    <script src="../js/goods.js"></script>
</body>
</html> 